package com.zzc.emotisenseclassroom.common;

/**
 * Copyright Zzc
 * FileName: ResponseCodeEnum
 * Author:   Zzc
 * Date:     2024/4/1615:10
 * Description:返回code枚举类
 * hISTORY:
 * <author>  <time>     <version>    <desc>
 * 作者姓名   修改时间       版本号       描述
 * Zzc                   1.0.0
 */
public enum ResponseCodeEnum {
    GENERATE_VALIDATE_CODE_SUCCESS(20001, "成功生成验证码"),

    PASSWORD_FALSE(20002, "账号不存在或密码错误"),

    WRONG_VALIDATE_COD(20003, "验证码错误"),

    LOGIN_SUCCESS(20004, "登录成功"),

    DUPLICATE_ACCOUNT_ID(20005, "该账号已存在，请修改账号"),

    REGISTER_SUCCESS(20006, "注册成功"),

    SEARCH_SUCCESS(20007, "查询成功"),

    UPDATE_USER_INFO_SUCCESS(20008, "更新用户信息成功"),

    GET_LINE_OPTION_SUCCESS(20009, "成功获取折线图数据"),

    GET_BAR_AND_PIE_OPTION_SUCCESS(20010, "成功获取饼状图和柱状图数据"),

    GET_LIST_SIZE_SUCCESS(20011, "成功获取数据总数"),

    UPLOAD_FILE_SUCCESS(20012, "成功上传文件")
    ;

    /**
     * 编码
     */
    private final Integer code;

    /**
     * 描述
     */
    private final String desc;

    ResponseCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
